new Vue({
    el: '#app',
    mixins: [Query],//组件配置文件，路径/utils/components.js
    data() {
        return {
            form: {//查询筛选
                value:'',
                PageNumber: 1, //页码
                RowAmount: 20,
                Condition: utf8ToBase64("%%"),
                Row_Status:[],
                
            },
        }
    },
    mounted() {
        /**
         * 组件配置文件中自动执行方法
         * 1.this.getColumn(); //查询表头数据
         * 2.this.getList(this.form); //查询表格数据
         * 3.this.getTreeData();//查询树
         */
    },
    methods: {
        handleSerach() { //筛选
            this.form.Condition = utf8ToBase64(`%${this.form.value}%`);
            this.getList(this.form);
        },
        getData() {//查询
            httpRequest({
                url: '/generalBusiness/generalQuery BySQLSerialNumber',
                data: {
                    // SQLSerialNumber: 's_base_column_config',
                    // Condition: utf8ToBase64(getCookie('user') + "," + getRelativePath()),
                    // ExtensionConditsion: ''
                    TableName:'farm_operation_record'
                }
            }).then(data => {
                this.field = data;
                this.checkList = data.filter(i => i.isShow == '1').map(i => i.SQL_Model_List_SerialNumber)
            }).catch(xhr => {
                this.$message({
                    message: '系统错误，请联系开发者!',
                    type: 'error'
                })
            })
        },
        
    }
})